<%@ page import="top.wuyang.study.javawebjdbc.worknews.TbNewsDAO" %><%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2024/5/20
  Time: 18:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>删除新闻</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    String sid = request.getParameter("id");
    Integer id = Integer.parseInt(sid);
    int result = TbNewsDAO.delete(id);
%>



<script>
    alert("删除成功");
    location.href='newslist.jsp'
</script>

</body>
</html>
